package com.meilingcloud.research.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meilingcloud.research.domain.RwsQcEntry;
import com.meilingcloud.research.mapper.RwsQcEntryMapper;
import com.meilingcloud.research.service.IRwsQcEntryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 质控-条目关联 Service业务层处理
 *
 * @author chenl
 * @date 2021-05-10
 */
@Service
public class RwsQcEntryServiceImpl extends ServiceImpl<RwsQcEntryMapper, RwsQcEntry> implements IRwsQcEntryService {

    @Override
    public List<RwsQcEntry> queryList(RwsQcEntry rwsQcEntry) {
        LambdaQueryWrapper<RwsQcEntry> lqw = Wrappers.lambdaQuery();
        if (rwsQcEntry.getQcId() != null) {
            lqw.eq(RwsQcEntry::getQcId, rwsQcEntry.getQcId());
        }
        return this.list(lqw);
    }
}
